package com.cheng.springBootHelloWorld.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
//spring会约定扫描application同级下的包或者子包，非同级加上扫描器


@Controller
public class HelloWorldSpringBootController {

    @ResponseBody
    @RequestMapping(value = "/helloWorld")
    public String helloWorld(){
        return "hello World";
    }
}
